function az = tgoBasedAz(s_max, s, ay, speedf, speed, dz, dvz, last_sign_az)
% 需满足 s_max > s  last_sign_dwz！=0
    absnuc = acos(s/s_max);
    if absnuc > 60*pi/180
        absnuc = 60*pi/180;
    end
    absAz = abs(ay*tan(absnuc));
    zm = 18*(speed - speedf) + 1500;
    zn = dz + 50*dvz;
    if abs(zn) >= zm
        last_sign_az = -sign(zn);
    end
    az = absAz*last_sign_az;
end